package com.wyw.mahjong.server.util;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Title
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2024/5/6 18:15
 * Update History:
 * Author        Time            Content
 */
public class IdUtils {
    private static final AtomicLong ID_GENERATOR = new AtomicLong(1);

    public static long generateId() {
        return ID_GENERATOR.getAndIncrement();
    }
}

